/**
 * Created by jianbo on 2016/3/22.
 */
require.config({
  paths:{
    "angular":"lib/ionic/js/ionic.bundle",
    "app":"js/app",
    "services":"js/services",
    "controllers":"js/controllers",
    "app.route":"js/app.route",
    "app.run":"js/app.run",
    "app.config":"js/app.config",
    "angular-validation": "lib/angular-validation/dist/angular-validation",
    "angular-validation-rule": "lib/angular-validation/dist/angular-validation-rule",
    "angular-cache":"lib/angular-cache/dist/angular-cache",
    "crypto":"lib/crypto-js/crypto-js",
    "underscore":"lib/underscore/underscore",
    "angular-progress-button-styles": "lib/angular-progress-button-styles/dist/angular-progress-button-styles",

    "toolkit":"js/toolkit"
  },
  shim:{
    'angular': {exports: 'angular'},
    'angular-validation':{deps:['angular']},
    'angular-cache':{deps:['angular']},
    'angular-validation-rule':{deps:['angular']},
    "angular-progress-button-styles":{deps:['angular']}
  },
  urlArgs:"bust="+(new Date()).getTime()      //放置读取缓存，调试用
});

require(['require','angular','app.run'], function (require) {

  angular.element(document).ready(function () {
    angular.element(document).find('body').attr("ng-app","starter");
    angular.bootstrap(document, ['starter']);
  });
});
function init() {

}

